<?php 


//显示商品分类列表页
Route::get('/goods-typelist', 'Admin\AdminGoodsTypeListController@AdminGoodsTypeList')->name('typelist');

//显示商品分类添加页
Route::get('/goods-typeadd', 'Admin\AdminGoodsTypeListController@AdminGoodsTypeAdd')->name('goods-typeadd');

//处理添加分类
Route::post('/goods-addtype', 'Admin\AdminGoodsTypeListController@AdminGoodsAddType')->name('goods-addtype');

//处理删除分类
Route::get('/goods-deltype', 'Admin\AdminGoodsTypeListController@AdminGoodsDelType')->name('deltype');

//显示编辑分类页
Route::get('/goods-edittype', 'Admin\AdminGoodsTypeListController@AdminGoodsEditType')->name('edittype');

//处理编辑分类页
Route::post('/goods-typeedit', 'Admin\AdminGoodsTypeListController@AdminGoodsTypeEdit')->name('typeedit');





//显示品牌页面
Route::get('/goods-brand', 'Admin\AdminGoodsBrandController@AdminGoodsBrand')->name('goodsbrand');

//显示添加品牌页面
Route::get('/goods-brandadd', 'Admin\AdminGoodsBrandController@AdminGoodsBrandAdd')->name('ibrandadd');

//处理添加品牌
Route::post('/goods-addbrand', 'Admin\AdminGoodsBrandController@AdminGoodsAddBrand')->name('addbrand');

//处理删除品牌
Route::get('/goods-delbrand','Admin\AdminGoodsBrandController@AdminGoodsDelBrand')->name('delbrand');

//显示编辑品牌页面
Route::get('/goods-editbrand','Admin\AdminGoodsBrandController@AdminGoodsEditBrand')->name('editbrand');

//处理编辑品牌
Route::post('/goods-brandedit','Admin\AdminGoodsBrandController@AdminGoodsBrandEdit')->name('brandedit');






//显示商品列表页面
Route::get('/goods-list', 'Admin\AdminGoodsListController@AdminGoodsList')->name('goodslist');

//显示商品添加页面
Route::get('/goods-add', 'Admin\AdminGoodsListController@AdminGoodsAdd')->name('goodsadd');

//处理添加商品数据
Route::post('/goods-add', 'Admin\AdminGoodsListController@AdminAddGoods')->name('addgoods');

//显示添加商品属性页面
Route::get('/goods-addattr', 'Admin\AdminGoodsListController@AdminGoodsAddAttr')->name('goodsaddattr');

//处理添加商品属性
Route::post('/goods-attradd', 'Admin\AdminGoodsListController@AdminGoodsAttrAdd')->name('goodsattradd');


//处理删除商品
Route::get('/goods-delgoods', 'Admin\AdminGoodsListController@AdminGoodsDelGoods')->name('delgoods');

//显示编辑商品页面
Route::get('/goods-edit', 'Admin\AdminGoodsListController@AdminGoodsEdit')->name('goodsedit');

//处理编辑商品
Route::post('/goods-edit', 'Admin\AdminGoodsListController@AdminEditGoods')->name('editgoods');


//处理下架商品
Route::get('/goods-stop', 'Admin\AdminGoodsListController@AdminGoodsStop')->name('goodsstop');

//处理上架商品
Route::get('/goods-start', 'Admin\AdminGoodsListController@AdminGoodsStart')->name('goodsstart');

//显示添加图片页面
Route::get('/goods-pic', 'Admin\AdminGoodsListController@AdminGoodsPic')->name('goodspic');

//处理添加图片
Route::post('/goods-addpic', 'Admin\AdminGoodsListController@AdminGoodsAddPic')->name('addgoodspic');

//显示商品详情页
Route::get('/goods-detail', 'Admin\AdminGoodsListController@AdminGoodsDetail')->name('goodsdetail');

//显示编辑商品属性页面
Route::get('/detail-edit', 'Admin\AdminGoodsListController@AdminDetailEdit')->name('detailedit');

//处理编辑商品属性
Route::post('/edit-detail', 'Admin\AdminGoodsListController@AdminEditDetail')->name('dodetail');

//处理删除商品属性
Route::get('/detail-del', 'Admin\AdminGoodsListController@AdminDetailDel')->name('deldetail');


//显示设置促销页面
Route::get('/goods-sales', 'Admin\AdminGoodsListController@AdminGoodsSales')->name('goodssales');

//处理设置促销
Route::post('/goods-dosales', 'Admin\AdminGoodsListController@AdminDoGoodsSales')->name('goodsdosales');

//取消促销
Route::get('/delsales', 'Admin\AdminGoodsListController@AdminDelSales')->name('delsales');

//显示商品图片列表
Route::get('/goods-image', 'Admin\AdminGoodsListController@AdminGoodsImage')->name('goodsimages');

//删除商品图片
Route::get('/goods-delimage', 'Admin\AdminGoodsListController@AdminDelImage')->name('delimage');



//显示促销列表页
Route::get('/salelist', 'Admin\AdminGoodsSaleListController@AdminSaleList')->name('salelist');

//处理促销禁用
Route::get('/sale-stop', 'Admin\AdminGoodsSaleListController@AdminSaleStop')->name('salestop');

//处理促销启用
Route::get('/sale-start', 'Admin\AdminGoodsSaleListController@AdminSaleStart')->name('salestart');

//删除促销
Route::get('/sale-del', 'Admin\AdminGoodsSaleListController@AdminSaleDel')->name('saledel');

//显示修改促销页面
Route::get('/sale-edit', 'Admin\AdminGoodsSaleListController@AdminSaleEdit')->name('saleedit');

//处理修改促销
Route::post('/edit-sale', 'Admin\AdminGoodsSaleListController@AdminEditSale')->name('editsale');
